package com.cccyy.data;

import java.security.SecureRandom;
import java.util.regex.Pattern;

public class MathTest {
    public static void main(String[] args) {
//        testRandom();
        boolean wp0002 = containsLetter("WP0002");
        System.out.println(String.valueOf(wp0002));


        Integer integer = Integer.valueOf("000055");
        System.out.println(integer);
    }

    private static void testRandom() {
        for (int i = 0; i < 10; i++) {
            double random = Math.random();
            System.out.println("生成数据-double：" + random);
        }
        System.out.println("#####################################");
        for (int i = 0; i < 10; i++) {
            SecureRandom secureRandom = new SecureRandom();
            double random = secureRandom.nextDouble();
            System.out.println("生成数据-double：" + random);
        }

    }

    public static boolean containsLetter(String str) {
        String pattern = ".*[a-zA-Z].*";
        return Pattern.matches(pattern, str);
    }
}
